﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;">
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <msxsl:script language="javascript" implements-prefix="user">
    function StrSplit(Str,splitChar,n){
    if(Str.length=0){return '1'}
    var a=Str.replace(/'/g,"").split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '1';
    return a[n];
    }
    return '1';
    }</msxsl:script>
  <xsl:template match="/">
  <form id="form1" name="form1" method="post" action="">
  <table width="100%" border="0" align="center" cellspacing="1" bgcolor="#e0e0e0" class="infoEdit">
      
        <tbody>
          <tr bgcolor="#ffffff">
            <td width="120" align="left">编码</td>
            <td align="left"><xsl:value-of select="rows/row/ID"/></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">上级栏目</td>
            <td align="left">
              <select name="F_PID" id="F_PID"><xsl:attribute name="onchange">if(this.value=='<xsl:value-of select="rows/row/ID"/>'){alert('您不能选择当级栏目作为上级栏目');this.value=0}</xsl:attribute><option value="0" style="background:#EEEEEE">设为项级栏目(0)</option>
              <xsl:value-of select="page:xLoadList('ParentCatalogSelect',0,rows/row/F_ParentID)" disable-output-escaping="yes"/>
              </select>              </td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">栏目名称</td>
            <td align="left"><input name="F_Name" type="text" class="input" id="F_Name" size="25" maxlength="24">
            <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Name"/></xsl:attribute>
</input></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">使用站点</td>
            <td align="left"><select name="siteid" id="siteid"><option value="0" style="background:#EEEEEE">全部站点(0)</option><city_list><xsl:attribute name="param"><xsl:value-of select="rows/row/F_PID"/></xsl:attribute>上级分类目录选择</city_list></select></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">应用类型</td>
            <td align="left"><select name="usefor" id="usefor"><option value="" style="background:#EEEEEE">默认栏目</option><option value="Top"  style="background:#C00; color:#FFF" ><xsl:if test="rows/row/F_UseFor='Top'"><xsl:attribute name="selected">1</xsl:attribute></xsl:if>头条栏目</option><option value="Img" style="background: #360; color:#FFF"><xsl:if test="rows/row/F_UseFor='Img'"><xsl:attribute name="selected">1</xsl:attribute></xsl:if>图片栏目</option></select>   </td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">顺序号</td>
            <td align="left"><input name="F_Order" type="text" id="F_Order"><xsl:attribute name="value"><xsl:value-of select="rows/row/F_Order"/><xsl:if test="count(rows/row)=0">10</xsl:if></xsl:attribute></input>            </td>
          </tr>        
          <tr bgcolor="#ffffff">
            <td align="left"><xsl:if test="count(rows/row)=0">继续新增<input type="checkbox" name="IsContinue" id="IsContinue" ></input></xsl:if></td>
            <td height="40" align="left"><input class="btnD" id="Submit1" type="button" value="保存" name="Submit1"><xsl:attribute name="onclick">if(TM.saveContentCmd(this,form1,1)==1){if(!$('IsContinue')||!$('IsContinue').checked)TM.pList()}</xsl:attribute></input>
              &nbsp; &nbsp;
              <input class="btnD" type="button" value="取消" name="button" onclick="TM.closeTab()"/>
&nbsp; &nbsp;
<input name="editID" type="hidden" id="editID"><xsl:attribute name="value"><xsl:value-of select="rows/row/ID"/><xsl:if test="count(rows/row)=0">0</xsl:if></xsl:attribute>
              </input><input name="f" type="hidden" value="@新闻栏目" /></td>
          </tr>
        </tbody>
      
    </table></form>
  </xsl:template>
</xsl:stylesheet>
